const Koa = require('koa')
const app = new Koa()

app.keys = ['abc', '123']
console.log(123)
app.use(async (ctx) => {
  // console.log(ctx.cookies.get('name',{signed: true}))
  ctx.cookies.set('name', 'tobi', {signed: true})
  ctx.body = 'success'
})

app.listen(3000)